﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RestFulService
{
    //会员每张礼券信息
    public class JAVATICKETINFO
    {
        /// <summary>
        /// 
        /// </summary>
        public int code { get; set; }
        /// <summary>
        /// 成功
        /// </summary>
        public string msg { get; set; }

        public List<MemberTicket> ticketlist { get; set; }

        public class MemberTicket
        {
            /// <summary>
            ///  礼劵编号
            /// </summary>
            public string ticketno { get; set; }
            /// <summary>
            ///  礼劵名称
            /// </summary>
            public string ticketname { get; set; }
            /// <summary>
            ///  开始日期
            /// </summary>
            public string begdate { get; set; }
            /// <summary>
            ///  结束日期
            /// </summary>
            public string enddate { get; set; }
            /// <summary>
            ///  优惠说明
            /// </summary>
            public string tickettitle { get; set; }
            /// <summary>
            ///  剩余张数
            /// </summary>
            public int surplusnum { get; set; }
            /// <summary>
            ///  礼劵类型(1=商品劵；2=代金劵)
            /// </summary>
            public int tickettype { get; set; }
            /// <summary>
            ///  计算栏位(1=购买金额；2=购买数量)
            /// </summary>
            public int calfield { get; set; }
            /// <summary>
            ///  计算金额/数量
            /// </summary>
            public decimal calmoney { get; set; }
            /// <summary>
            ///  优惠方式(1=折扣；2=折让) 
            /// </summary>
            public int ticketdiscmode { get; set; }
            /// <summary>
            ///  折扣比率/折让金额
            /// </summary>
            public decimal ticketdiscamt { get; set; }
            /// <summary>
            ///  每笔交易使用张数
            /// </summary>
            public int usenum { get; set; }
            /// <summary>
            ///  礼劵面值
            /// </summary>
            public decimal facevalue { get; set; }

            public List<TicketItem> foodList { get; set; }

        }

        public class TicketItem
        {

            public int catscore { get; set; }

            public string foodno { get; set; }
        }
    }
}
